package com.cloudcc.mobile.entity;
/**
 * 消息推送
 * @author Administrator
 *
 */
public class PushMsg {
	private String fromUserId;//发送消息用户ID
	private String toUserId;//接收消息用户ID
	private String messageType;//1：文本，2：语音，3：图片
	private String fileName;//文件名，包括后缀名
	private String message;//文本：发送的消息。语音、图片：Base64编码的字符串, 编码格式为Base64.NO_WRAP。
	private double compressionRatio;//压缩率，参数值0-1之间，不包括0，包括1。图片的高度、宽度等比例缩小。默认值为0.5。
	public PushMsg(String fromUserId, String toUserId, String messageType,
			String fileName, String message, double compressionRatio) {
		super();
		this.fromUserId = fromUserId;
		this.toUserId = toUserId;
		this.messageType = messageType;
		this.fileName = fileName;
		this.message = message;
		this.compressionRatio = compressionRatio;
	}
	public PushMsg() {
		super();
	}
	public String getFromUserId() {
		return fromUserId;
	}
	public void setFromUserId(String fromUserId) {
		this.fromUserId = fromUserId;
	}
	public String getToUserId() {
		return toUserId;
	}
	public void setToUserId(String toUserId) {
		this.toUserId = toUserId;
	}
	public String getMessageType() {
		return messageType;
	}
	public void setMessageType(String messageType) {
		this.messageType = messageType;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public double getCompressionRatio() {
		return compressionRatio;
	}
	public void setCompressionRatio(double compressionRatio) {
		this.compressionRatio = compressionRatio;
	}
	
}
